package com.chen.recruit.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 菜单类型
 *
 * @author cgy
 * @date 2022/9/14
 */
@Getter
@AllArgsConstructor
public enum MenuType implements BaseEnum {

    DIRECTORY("目录", "D"),
    MENU("菜单", "M"),
    BUTTON("按钮", "B");

    @JsonValue
    private String label;

    @EnumValue
    private String value;

    @Override
    public String getLabel() {
        return label;
    }

}
